include( 'shared.lua' )
include("skin.lua");

for _, dir in pairs( file.FindDir("lua_temp/" .. GAME.FolderName .. "/gamemode/modules/*",true) ) do

    print("--------------------");
    local logstr = "Loaded " .. dir .. ": ";
       
    // Shared
    if (file.Exists("lua_temp/" .. GAME.FolderName .. "/gamemode/modules/" .. dir .. "/" .. dir .. "_shared.lua", true)) then
        
        include("modules/" .. dir .. "/" .. dir .. "_shared.lua");
        logstr = logstr .. "Shared ";
                
    end
       
    // Client
    if (file.Exists("lua_temp/" .. GAME.FolderName .. "/gamemode/modules/" .. dir .. "/" .. dir .. "_cl_init.lua", true)) then
        
        include("modules/" .. dir .. "/" .. dir .. "_cl_init.lua");
        logstr = logstr .. "Client ";
                
    end
        
    print(logstr); 
    print("--------------------");
        
end


